package com.charlotte.study.gupao.chain.general;


/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class ConcreteHandlerB extends Handler {
    @Override
    public void handlerRequest(String request) {
        if(request.equalsIgnoreCase("requestB")){
            System.out.println(this.getClass().getSimpleName() + "处理请求");
            return;
        }
        if(this.nextHandler != null){
            this.nextHandler.handlerRequest(request);
        }
    }
}
